package date.Exa4;

import java.time.LocalTime;

/**
 * 本地时间API学习
 */
public class LocalTimeStudy {

    public static void main(String[] args) {
        //获取当前时间
        LocalTime time = LocalTime.now();
        System.out.println("当前时间为："+time);

        //获取指定时间对象
        LocalTime ofTime = LocalTime.of(22,34,23);
        System.out.println("指定时间为: "+ofTime);

        LocalTime plusTime = LocalTime.now().plusMinutes(22);
        System.out.println(plusTime);
    }
}
